package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.to.SkuDetailTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lfy
 * @Description
 * @create 2023-08-18 15:24
 */
@RequestMapping("/api/inner/item")
@FeignClient("service-item")
public interface SkuItemDetailFeignClient {

    /**
     * 查询商品详情
     * @param skuId
     * @return
     */
    @GetMapping("/detail/{skuId}")
    Result<SkuDetailTO> getSkuDetail(@PathVariable("skuId") Long skuId);
}
